﻿using AutoMapper;
using eCommerceApp.Application.DTOS.Category;
using eCommerceApp.Application.DTOS.Identity;
using eCommerceApp.Application.DTOS.Product;
using eCommerceApp.Domain.Entities;
using eCommerceApp.Domain.Entities.Identity;

namespace eCommerceApp.Application.Mapping
{
    public class MappingConfig:Profile
    {
        public MappingConfig() 
        {
            CreateMap<CreateCategory, Category>();
            CreateMap<CreateProduct,Product>();

            CreateMap<Category, GetCategory>();
            CreateMap<Product, GetProduct>();

            CreateMap<CreateUser, AppUser>();
            CreateMap<LoginUser, AppUser>();
        }
    }
}
